<html>
    <head>
        <title>GeoExt WMS Capabilities Example</title>
        <script type="text/javascript" src="http://extjs.cachefly.net/ext-2.2.1/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="http://extjs.cachefly.net/ext-2.2.1/ext-all.js"></script>
        <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" />
        <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/examples/shared/examples.css" />
				<script>
					Ext.onReady(function() {
						Ext.Ajax.request({
							 url: 'http://ogc.gbif.org/wms'
							,	method: "GET"
							,success: function( a, b, c) {
								console.log(this, a, b, c);
							 } 
							, failure: function( a, b, c) {
								console.log(this, a, b, c);
							 }
							,	defaultHeaders : {
									foo: "bar"
								}
							,	headers: {
									Origin: "ogc.gbif.org"
									,	test: "foo"
							 }
							,	params: { 
									service: "wms"
								,	version: "1.1.1"
								,	request: "GetCapabilities"
							}
						});

					});
					
				</script>
    </head>
    <body>
        <div id="capgrid"></div>
    </body>
</html>
